package com.heima.wemedia;

import com.heima.wemedia.service.GreenScanService;
import com.heima.wemedia.service.impl.WmSensitiveServiceImpl;
import com.heima.wemedia.service.impl.WmUserServiceImpl;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.Map;

/**
 * @author rookie001
 * @creat 2023-06-11-15:14
 */
@SpringBootTest
@RunWith(SpringRunner.class)
public class test {
    @Autowired
    private GreenScanService greenScanService;

    @Test
    public void test1() {
        greenScanService.refreshToken();
        Map map = greenScanService.scanText("芜湖");
        System.out.println(map);
    }

    @Test
    public void test2() {
        greenScanService.refreshToken();
        Map map = greenScanService.scanImage("http://192.168.200.130:9000/leadnews1/2023/06/08/74b74073801b4c1f91131eea0d40bd96.png");
        System.out.println(map);
    }

}
